package com.lmt.ymcc.feign;

import com.lmt.ymcc.dto.CourseDoc;
import com.lmt.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Description:
 * @Author: Amazing
 * @Date: 2022/8/14 15:46
 * @Version: 1.0
 */
@FeignClient(value = "service-search", fallbackFactory = SearchFeignFallbackFactory.class)
public interface SearchFeignClient {

    @PostMapping("/course/save")
    JSONResult saveCourse(@RequestBody CourseDoc doc);

    @PostMapping("/course/delete")
    JSONResult delete(@RequestBody Long id);
}
